<?php
session_start();
include "../config.php";

if($_SESSION[HASH.'_LOGIN'] != 'OK')
	{		
		setcookie('REFERER', urlencode($_SERVER['REQUEST_URI']), time() + 5*60, '/' );		
		
		header('Location: ../user/dang_nhap.php');
		exit;
	}
	
if (!isset($_SESSION['msg'])) $_SESSION['type_msg']= '';

function message() {
		if ($_SESSION['msg'] != '') {
			
			echo '<div class="', $_SESSION['type_msg'], '">
			  <div>','<strong>', $_SESSION['msg'],'</strong>', '</div>
			</div>';
							
			$_SESSION['msg'] = '';
		}		
}


?>